export const formConfig = [
    {
        name: 'name',
        type: 'input',
        placeholder: '项目名称',
    },
]

export const column = [
    // {
    //     label: '序号',
    //     name: 'id',
    // },
    {
        label: '项目名称',
        name: 'name',
    },
    {
        label: '能耗单位',
        name: 'unit',
    },
    {
        label: '能耗指标等级',
        name: 'level',
        type: 'subform',
        items: [
            {
                name: 'level1',
                type: 'text',
                label: '一级',
                width: '100',
            },
            {
                name: 'level2',
                type: 'text',
                label: '二级',
                width: '100',
            },
            {
                name: 'level3',
                type: 'text',
                label: '三级',
                width: '100',
            },
        ],
    },
    {
        label: '当月用电量',
        name: 'power',
    },
    {
        label: '当月抽出风量/平均全压',
        name: 'wind',
        width: '90',
    },
    {
        label: '当月排水量/排水垂直高度',
        name: 'water',
        width: '90',
    },
    {
        label: '当月提升量/可比高度',
        name: 'up',
        width: '90',
    },
    {
        label: '当月压风量/平均绝对压力',
        name: 'air',
        width: '90',
    },
    {
        label: '当月数值',
        name: 'month_data',
    },
    {
        label: '当月结果',
        name: 'month_res',
    },
    {
        label: '累计数值',
        name: 'accumulate_data',
    },
    {
        label: '累计结果',
        name: 'accumulate_res',
    },
    {
        title: '操作',
        name: 'action',
        width: '130',
        buttons: [],
    },
]

export const config = [
    {
        name: 'type',
        type: 'select',
        placeholder: '请选择项目类型',
        label: '项目类型',
        options: [
            {
                label: '通风系统',
                value: 'wind',
            },
            {
                label: '排水系统',
                value: 'water',
            },
            {
                label: '提升机系统',
                value: 'up',
            },
            {
                label: '空气压缩系统',
                value: 'air',
            },
        ],
        required: true,
    },
    {
        name: 'name',
        type: 'input',
        placeholder: '请输入项目名称',
        label: '项目名称',
        required: true,
    },
    {
        name: 'unit',
        type: 'input',
        placeholder: '请输入能耗单位',
        label: '能耗单位',
        required: true,
    },
    {
        name: 'level',
        type: 'form',
        label: '能耗指标等级',
        required: true,
        baseForm: {
            level1: '',
            level2: '',
            level3: '',
        },
        config: [
            {
                name: 'level1',
                type: 'input',
                label: '一级',
            },
            {
                name: 'level2',
                type: 'input',
                label: '二级',
            },
            {
                name: 'level3',
                type: 'input',
                label: '三级',
            },
        ],
    },
    {
        name: 'power',
        type: 'input',
        placeholder: '请输入当月用电量',
        label: '当月用电量',
        required: true,
    },
    {
        name: 'wind',
        type: 'input',
        placeholder: '请输入当月抽出风量/平均全压',
        label: '当月抽出风量/平均全压',
    },
    {
        name: 'water',
        type: 'input',
        placeholder: '请输入当月排水量/排水垂直高度',
        label: '当月排水量/排水垂直高度',
    },
    {
        name: 'up',
        type: 'input',
        placeholder: '请输入当月提升量/可比高度',
        label: '当月提升量/可比高度',
    },
    {
        name: 'air',
        type: 'input',
        placeholder: '请输入当月压风量/平均绝对压力',
        label: '当月压风量/平均绝对压力',
    },
    {
        name: 'month_data',
        type: 'input',
        placeholder: '请输入当月数值',
        label: '当月数值',
        required: true,
    },
    {
        name: 'month_res',
        type: 'select',
        placeholder: '请选择当月结果',
        label: '当月结果',
        options: [
            {
                label: '一级',
                value: '一级',
            },
            {
                label: '二级',
                value: '二级',
            },
            {
                label: '三级',
                value: '三级',
            },
        ],
        required: true,
    },
    {
        name: 'accumulate_data',
        type: 'input',
        placeholder: '请输入累计数值',
        label: '累计数值',
        required: true,
    },
    {
        name: 'accumulate_res',
        type: 'select',
        placeholder: '请选择累计结果',
        label: '累计结果',
        options: [
            {
                label: '一级',
                value: '一级',
            },
            {
                label: '二级',
                value: '二级',
            },
            {
                label: '三级',
                value: '三级',
            },
        ],
        required: true,
    },
]
